﻿using MuddyBoots.Greenlight.QC.Common.Patterns.Behaviour.Mediator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediatorSample.Classes
{
    /// <summary>
    /// This is just to test that listeners operate independently
    /// </summary>
    public class DummyListener : MediatorListener
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DummyListener"/> class.
        /// </summary>
        public DummyListener()
        {
            Mediator.Register("MyNotificationToken", this.InstanceId, this.DummyCallback);
        }

        /// <summary>
        /// Dummy callback to allow registration.
        /// </summary>
        /// <param name="obj">The object.</param>
        private void DummyCallback(object obj)
        {
            throw new NotImplementedException();
        }
    }
}
